import Vue from 'vue'
import Router from 'vue-router'
import index from '@/pages/index'
import user from '@/pages/user'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '首页',
      component: index,
      children: [
        {
      		path: '/user',
	      	name: '个人中心',
	      	component: user
      	}
      ]
    }
  ]
})
